package com.ruoyi.house.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 房源对象 yjz_house
 *
 * @author 码道可道
 * @date 2025-07-25
 */
@TableName(resultMap = "com.ruoyi.house.mapper.YjzHouseMapper.YjzHouseResult")
public class YjzHouse extends BaseEntity
 {
        private static final long serialVersionUID = 1L;

        /** 主键 */
        @TableId(value = "id",type = IdType.AUTO)
        private Long id;

        /** 发布人id */
        @Excel(name = "发布人id")
        private Long userId;

        /** 标题 */
        @Excel(name = "标题")
        private String title;

        /** 户型 */
        @Excel(name = "户型")
        private String type;

        /** 面积(㎡) */
        @Excel(name = "面积(㎡)")
        private Long area;

        /** 装修 */
        @Excel(name = "装修")
        private String decorate;

        /** 楼层 */
        @Excel(name = "楼层")
        private String floor;

        /** 朝向 */
        @Excel(name = "朝向")
        private String toward;

        /** 区域 */
        @Excel(name = "区域")
        private String region;

        /** 小区/商圈 */
        @Excel(name = "小区/商圈")
        private String district;

        /** 租金(元/月) */
        @Excel(name = "租金(元/月)")
        private Long price;

        /** 详细描述 */
        @Excel(name = "详细描述")
        private String houseDesc;

        /** 状态(在租/已出租/审核中/未通过) */
        @Excel(name = "状态(在租/已出租/审核中/未通过)")
        private String status;

        /** 联系方式 */
        @Excel(name = "联系方式")
        private String contact;

        public void setId(Long id)
        {
            this.id = id;
        }

        public Long getId()
        {
            return id;
        }
        public void setUserId(Long userId)
        {
            this.userId = userId;
        }

        public Long getUserId()
        {
            return userId;
        }
        public void setTitle(String title)
        {
            this.title = title;
        }

        public String getTitle()
        {
            return title;
        }
        public void setType(String type)
        {
            this.type = type;
        }

        public String getType()
        {
            return type;
        }
        public void setArea(Long area)
        {
            this.area = area;
        }

        public Long getArea()
        {
            return area;
        }
        public void setDecorate(String decorate)
        {
            this.decorate = decorate;
        }

        public String getDecorate()
        {
            return decorate;
        }
        public void setFloor(String floor)
        {
            this.floor = floor;
        }

        public String getFloor()
        {
            return floor;
        }
        public void setToward(String toward)
        {
            this.toward = toward;
        }

        public String getToward()
        {
            return toward;
        }
        public void setRegion(String region)
        {
            this.region = region;
        }

        public String getRegion()
        {
            return region;
        }
        public void setDistrict(String district)
        {
            this.district = district;
        }

        public String getDistrict()
        {
            return district;
        }
        public void setPrice(Long price)
        {
            this.price = price;
        }

        public Long getPrice()
        {
            return price;
        }
        public void setHouseDesc(String houseDesc)
        {
            this.houseDesc = houseDesc;
        }

        public String getHouseDesc()
        {
            return houseDesc;
        }
        public void setStatus(String status)
        {
            this.status = status;
        }

        public String getStatus()
        {
            return status;
        }
        public void setContact(String contact)
        {
            this.contact = contact;
        }

        public String getContact()
        {
            return contact;
        }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("title", getTitle())
            .append("type", getType())
            .append("area", getArea())
            .append("decorate", getDecorate())
            .append("floor", getFloor())
            .append("toward", getToward())
            .append("region", getRegion())
            .append("district", getDistrict())
            .append("price", getPrice())
            .append("houseDesc", getHouseDesc())
            .append("status", getStatus())
            .append("contact", getContact())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
                .toString();
    }
 }